<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    
<!-- 斗篷, 若标签中含有v-cloak指令，那么在页面完成渲染之前会执行v-cloak中的属性，等到页面渲染完成之后v-cloak自动失效 -->
<div id="app" v-cloak>
    <h2>
        {{massage}}
    </h2>
</div>
 
<script src="../js/vue.js"></script>
<script>
    setTimeout(() => {
        const app = new Vue({
            el: '#app',
            data: {
                massage: '你好'
            }
        })    
    }, 1000);
</script>
</body>
</html>